/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package trainmodel;

/**
 *
 * @author Yan
 */
import java.util.*;

public class Cars<T> {

    double width=2.65;// in m
    double height=3.42;//in m
    double length=32.3;//in m
    double avgPassengerWeight = 70;//in kg
    int passengerCap = 74+148;
    int passengerNum = 0;
    double weight=40900;//in kg
    double totalWeight;
    boolean doorOpen=false;
    private ArrayList<T> CarList;
    int size;
    String stationInfo;
    int ACtemp;
    boolean ACstatus;
    int cabinLights;
    boolean headLights;
    
    public Cars(int ID){

        CarList = new ArrayList();


        int carID=ID;
        width = 20;
        length = 40;
        height = 10;
        passengerNum = 0;
        doorOpen = false;


        


    }

    double getWidth(){
       return width;
    }

    double getHeight(){
        return height;
    }
    
    double getLength(){
        return length;
    }

    int getPassengerNum(){
        return passengerNum;
    }

    double getTotalMass(){
        totalWeight = weight + (double)passengerNum * avgPassengerWeight;
        return totalWeight;
    }

    void setDoor(boolean status){
        doorOpen = status;
    }

    boolean getDoor(){
        return doorOpen;
    }

    void setDisplay(String info){
        stationInfo = info;
    }

    String getDisplay(){

        return stationInfo;
    }
    void setAC(boolean status){
        ACstatus = status;
    }

    boolean getAC(){
        return ACstatus;
    }

    void setACtemp(int temp){
        ACtemp =temp;
    }

    int getACtemp(){
        return ACtemp;
    }

    public void setHeadLights (boolean hdLghts)    // true = on
    {
        headLights = hdLghts;
    }

    public void setCabinLights (int cbLghts)
    {
        cabinLights = cbLghts;
    }

}
